//
//  RecordCell.m
//  MUBATE
//
//  Created by sunbin on 2017/2/23.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import "RecordCell.h"
#import "RecentRecordModel.h"

@interface RecordCell()

@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *timer;

@property (weak, nonatomic) IBOutlet UILabel *money;
@property (weak, nonatomic) IBOutlet UIImageView *log;

@end

@implementation RecordCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setModel:(RecentRecordModel *)model{
    _model = model;
    
    _name.text = model.name;
    _timer.text = model.timer;
    _money.text = [NHUtils moneyWithInterge:[model.affect_money floatValue]];
    
    // 图片 model.type
    NSString *imageNamse = [@[@"phone" ,@"emaill"] objectAtIndex:[model.type integerValue]-1];
    _log.image = IMAGE(imageNamse);

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
